package cn.zw.msmp.controller.vo;

import cn.zw.msmp.common.util.DateUtil;
import cn.zw.msmp.pojo.CustomerInfo;


public class CustomerVO {
	
	private Integer id;
	
	private String customerName;
	
	private String mobile;
	
	private String address;
	
	private String remark;

	private String createTime;
	
	private String lastModifyTime;
	
	public CustomerVO(CustomerInfo customerInfo) {
		this.id = customerInfo.getId();
		this.customerName = customerInfo.getCustomerName();
		this.mobile = customerInfo.getMobile();
		this.address = customerInfo.getAddress();
		this.remark = customerInfo.getRemark();
		this.createTime = DateUtil.convertDate2String("yyyy-MM-dd HH:mm:ss", customerInfo.getCreateTime());
		this.lastModifyTime = DateUtil.convertDate2String("yyyy-MM-dd HH:mm:ss", customerInfo.getLastModifyTime());
	}
	
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(String lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	@Override
	public String toString() {
		return "CustomerInfo [id=" + id + ", customerName=" + customerName
				+ ", mobile=" + mobile + ", address=" + address + ", remark="
				+ remark + ", createTime=" + createTime + "]";
	}
	
	
}
